package com.haust.dianqi.service;

import com.haust.dianqi.pojo.Article;

import java.util.List;

/**
 * @Auther: csp1999
 * @Date: 2020/10/10/16:19
 * @Description: 文章Service接口
 */
public interface ArticleService {

    public Article addArticle(Article article);

    public Article queryArticleById(String id);

    public List<Article> getArticleByType(Integer type);

    // 获取首页近期公告
    public List<Article> queryCurrentPublic();

    // 获取首页近期新闻
    List<Article> queryCurrentNews();
}
